<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <title th:text="'教师/学生-'+${@config.getKey('site.name')}"></title>
    <link th:href="@{/css/scholars.css}" rel="stylesheet"/>
    <link th:href="@{/css/index.css}" rel="stylesheet"/>
    <link th:href="@{/css/font-awesome.css}" rel="stylesheet"/>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}"/>
</head>
<!--在线客服-->
<script type='text/javascript'>
    (function(m, ei, q, i, a, j, s) {
        m[i] = m[i] || function() {
            (m[i].a = m[i].a || []).push(arguments)
        };
        j = ei.createElement(q),
            s = ei.getElementsByTagName(q)[0];
        j.async = true;
        j.charset = 'UTF-8';
        j.src = 'https://static.meiqia.com/dist/meiqia.js?_=t';
        s.parentNode.insertBefore(j, s);
    })(window, document, 'script', '_MEIQIA');
    _MEIQIA('entId', 163871);
</script>
<body>
<!-- 注册登录 -->
<div th:include="common/v2/head :: head"></div>

<!--通知区域-->
<div class="nav" >
    <div align="left" style="padding-top: 0px;padding-bottom: 10px;">
        <marquee><span th:utext="${newOneNotice.noticeContent}"></span></marquee>
    </div>
</div>

<!--教师数据展示-->
<div class="scholars">
    <div class="scholars_item">
        <div class="scholars_item_head">
            <a style="color: #fff;font-size: 20px;font-weight: 600;letter-spacing: 10px;">
                <i class="fa fa-user"> </i>
                高校
            </a>
        </div>
        <div class="scholars_item_list">
            <ul class="treeDemoAUTHOR">
                <li class="treeDemoAUTHOR_li" th:each="dept:${deptsList}"><a th:href="@{/front/scholar(deptId=${dept.deptId},name=${name})}"><span class="treeDemoAUTHOR_li_1" th:text="${dept.deptName}" /></a>
                    <span class="treeDemoAUTHOR_li_2" th:text="${dept.totalUser}"></span></li>
            </ul>
        </div>
    </div>
    <div class="scholars_contain">
        <div class="search">
            <form th:action="@{/front/scholar}" method="get">
                <input type="text" name="name" class="search_content" placeholder="输入姓名" th:value="${name}" autocomplete="off">
                <input name="deptId" th:value="${deptId}" type="hidden">
                <input type="submit" value="搜索" class="search_submit">
            </form>
        </div>
        <table class="table_author">
            <tr class="author_tbody" th:each="user:${usersList}">
                <td><img th:src="(${user.avatar} == '') ? @{/img/profile.jpg} : @{${user.avatar}}"></td>
                <td class="oddRowOddCol">
                    <ul class="author_ul">
                        <li>
                            <a class="author_a1" th:text="${user.userName}" th:href="@{/front/article(q=${user.userName})}"></a>
                            <a class="author_a3" th:text="${user.post}"></a>
                        </li>
                        <li>
                            <a class="author_a2" th:text="${user.remark}"></a>
                        </li>
                        <li>
                            所属机构：<a class="a3" th:text="${user.dept.deptName}" th:href="@{/front/article(deptName=${user.dept.deptId})}"></a>
                        </li>
                        <li>
                            <a>资源量：</a>
                            <a class="Results badge" th:text="${user.total}"></a>
                        </li>
                    </ul>
                </td>
            </tr>
        </table>
    </div>
</div>
<!--分页-->
<div class="paging">
    <ul class="pagination" id="pagination1">
        <!--//如果当前页等于1，总页数大于1（不显示上一页）   orderDara.current&ndash;&gt;当前页-->
        <li id="first">
            <a th:href="@{/front/scholar(page=1,size=${size},deptId=${deptId},name=${name})}">首页</a>
        </li>
        <li th:if="${page != 1}">
            <a th:href="@{/front/scholar(page=${page}-1,size=${size},deptId=${deptId},name=${name})}">上一页</a>
        </li>

        <li th:each="i:${#numbers.sequence(1,totalPage)}">
            <!--//从1到总页数遍历，并赋值给i    orderDara.pages&ndash;&gt;总页数-->
            <a class="active" th:if="${i > page-3} and ${i <page+3} and ${i == page}" href="javascript:void(0);"
               th:text="${i}">#</a>
            <!--//限制显示页数的条数  4到6个页数   而且等于当前页，不能点击-->
            <a th:if="${i > page -3} and ${i < page+3} and ${i != page}"
               th:href="@{/front/scholar(page=${i},size=${size},deptId=${deptId},name=${name})}" th:text="${i}">#</a><!--//限制显示页数的条数  4到6个页数-->
        </li>
        <li th:if="${page != totalPage}">
            <a th:href="@{/front/scholar(page=${page}+1,size=${size},deptId=${deptId},name=${name})}">下一页</a>
        </li>
        <li id="last">
            <a th:href="@{/front/scholar(page=${totalPage},size=${size},deptId=${deptId},name=${name})}">尾页</a>
        </li><!--//跳转至第orderDara.current页-->
        <li>
            <a href="#" th:text="'共'+${totalPage}+'页'"></a>
        </li>
    </ul>
</div>
<!-- 友情链接 -->
<div class="yqlj nav">
    <h3 class="tip">友情链接</h3>
    <div class="friendBox">
        <span th:each="link:${allLinkList}">
            <a target="_blank" th:href="${link.linkUrl}" th:title="${link.linkName}">
                <span th:text="${link.linkName}"></span>
            </a>
        </span>
    </div>

</div>
<!-- 版权声明 -->
<div class="bqsm">
    <div class="sInfo">
        <a href="">Powered by <a href="/"><span th:text="${@config.getKey('site.name')}"></span></a></a>
        <a href="/tomzPage">免责申明</a>
        <a target="_blank" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=admin@qqzsh.top" class="qqjb" style="color: #f40;">侵权举报</a>
        <a target="_blank" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=admin@qqzsh.top" style="border-color: transparent;">广告合作</a>
    </div>
    <div class="sInfo">
        <span>资源总数 : <span th:text="${articleNums}"></span></span>
        <span>用户总数 ：<span th:text="${userNum}"></span></span>
        <span>下载量 ：<span th:text="${downloadNums}"></span>
    </div>
    <div class="sInfo" style="border-color: transparent;">
        Copyright © <span th:text="${@config.getKey('site.copyrightyear')}"/> <a th:href="${@config.getKey('site.url')}"><span th:text="${@config.getKey('site.url')}"></span></a> 版权所有
    </div>
    <div class="sInfo">
        <a href="http://www.beian.miit.gov.cn" target="_blank" style="border-color: transparent;"><span th:text="${@config.getKey('site.record')}"></span></a>
    </div>
</div>
</body>
<script th:src="@{/js/jquery.min.js}" type="text/javascript" charset="utf-8"></script>
<script th:src="@{/layui/layui.js}" type="text/javascript"></script>
<script th:src="@{/js/common.js}" type="text/javascript"></script>
<script th:inline="javascript">
    /*<![CDATA[*/
    layui.use(['element', 'form', 'laypage'], function () {
        var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块
        $("#scholar").addClass("active");
    });

    /*]]>*/
</script>
</html>